Skip to content

Need gnu getopt on Macs #14

@DanielEWeeks

Description

@DanielEWeeks

Might be helpful to point out in your Readme that on a Mac, it will be necessary to switch to using gnu getopt instead of the default getopt in order for your dbgap-docker.bash script to run. This can be done by issuing these commands:

brew install gnu-getopt 
brew link --force gnu-getopt

With the default version of getopt that comes with the Macs, the dbgap-docker.bash example commands dies with this rather cryptic error message:

$ ./dbgap-docker.bash -i ./input_files/1000_Genomes_Study/ -o ./output_files/1000_Genomes_Study -m ./input_files/1000_Genomes_Study/metadata.json up
getopt: illegal option -- l
getopt: illegal option -- g
getopt: illegal option -- e
getopt: illegal option -- l
getopt: illegal option -- ,
getopt: illegal option -- u
getopt: illegal option -- :
getopt: illegal option -- ,
getopt: illegal option -- u
getopt: illegal option -- u
getopt: illegal option -- :
getopt: illegal option -- ,
getopt: illegal option -- a
Wrong number/type of arguments
Usage: dbgap-docker.bash [-h] [-i, --input [input directory]]
[-o, --output [output directory]] 
[-m, --manifest [manifest file]]
[up|down]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions