This is the way it was originally, but that version wasn't checked in.
I had some crazy idea that this ordering made interfacing to userv
easier, but it doesn't.
### Main program.
OP = O.OptionParser(
- usage = '%prog FILE|DIRECTORY ... SECTION',
+ usage = '%prog SECTION FILE|DIRECTORY ...',
version = '%%prog, version %s' % VERSION,
description = '''\
Parse the configurations FILE and DIRECTORY contents, and output the named
opts, args = OP.parse_args(args[1:])
if len(args) < 2:
OP.error('not enough positional parameters')
- files = args[:-1]
- sect = args[-1]
+ sect = args[0]
+ files = args[1:]
## Read in the inputs.
d = { '@GLOBAL': Section('@GLOBAL') }
profile=$1
## Write the named system PROFILE to standard output.
- $bindir/extract-profile $ETC/profile.d/ "$profile"
+ $bindir/extract-profile "$profile" $ETC/profile.d/
}
setprops () {
userv "$user" cryptop-profile "$label" >$tmp/profile
;;
nil)
- $bindir/extract-profile $ETC/profile.d/ "$label" >$tmp/profile
+ $bindir/extract-profile "$label" $ETC/profile.d/ >$tmp/profile
;;
esac