djsutherland / pummeler

Utilities to analyze ACS PUMS files, especially for distribution regression / ecological inference
MIT License
21 stars 7 forks source link

CLI issue #18

Closed flaxter closed 7 years ago

flaxter commented 7 years ago

$ python pummel featurize --seed 1 --skip-feats POWSP regions usage: pummel featurize [-h] [--chunksize LINES] [--skip-rbf] [--n-freqs N_FREQS] [--bandwidth BANDWIDTH] [--rff-orthogonal | --rff-normal] [--seed SEED] [--skip-feats FEAT_NAME [FEAT_NAME ...]] dir [outfile] pummel featurize: error: too few arguments

flaxter commented 7 years ago

This works:

$ python pummel featurize --seed 1 regions

flaxter commented 7 years ago

As does this:

$ python pummel featurize --skip-feats POWSP --seed 1 regions

djsutherland commented 7 years ago

It's a slightly unintuitive behavior of argparse; it's trying to interpret regions as another argument to --skip-feats. You can do it with

python pummel featurize --seed 1 --skip-feats POWSP -- regions.