Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect help prompt #105

Closed
petebachant opened this issue Mar 27, 2018 · 2 comments
Closed

Incorrect help prompt #105

petebachant opened this issue Mar 27, 2018 · 2 comments

Comments

@petebachant
Copy link
Contributor

petebachant commented Mar 27, 2018

Build OpenFAST on Ubuntu, and tried running

openfast -h

The help flag doesn't seem to work, and the executable is still looking for an input file. Also, it seems the executable names are FAST.exe and FAST_x64.exe, not openfast.

Full output:

pete@pete-VirtualBox:~/projects/openfast/build$ openfast -h

  Syntax is:

     FAST [-h] <InputFile>

  where:

     -h generates this help message.
     <InputFile> is the name of the required primary input file.

  Note: values enclosed in square brackets [] are optional. Do not enter the brackets.


 **************************************************************************************************
 OpenFAST

 Copyright (C)  National Renewable Energy Laboratory

 This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY.
 See the "LICENSE" file distributed with this software for details.
 **************************************************************************************************

 OpenFAST-v0.1.0-948-gfcb6fab7-dirty
 Compile Info:
  - Architecture: 64 bit
  - Precision: double
 Execution Info:
  - Date: 03/27/2018
  - Time: 13:50:04-0400


  Syntax is:

     OpenFAST [-h] <InputFile>

  where:

     -h generates this help message.
     <InputFile> is the name of the required primary input file.

  Note: values enclosed in square brackets [] are optional. Do not enter the brackets.


  Syntax is:

     FAST_x64.exe [-h] <InputFile>

  where:

     -h generates this help message.
     <InputFile> is the name of the required primary input file.

  Note: values enclosed in square brackets [] are optional. Do not enter the brackets.


 FAST_InitializeAll:The required input file was not specified on the command line.

 FAST encountered an error during module initialization.
  Simulation error level: FATAL ERROR

  Aborting OpenFAST.
@rafmudaf
Copy link
Collaborator

rafmudaf commented Jun 8, 2018

Pull request #116 updates the executable names and fixes the bug where the help prompt is shown twice with the -h flag.

I'm leaving this issue open for the other bugs pointed out and the unsupported help prompt for executables having more available flags than -h (for example, -restart in openfast).

@rafmudaf
Copy link
Collaborator

fixed by #421

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants